package com.yundasys.lab02springbootstudy.importselector.config;

import com.yundasys.lab02springbootstudy.importselector.bean.StudentBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @PACKAGE_NAME: com.yundasys.lab02springbootstudy.importselector.annotation
 * @NAME: AppConfig
 * @USER: jiangta
 * @DATE: 2022/2/10
 * @TIME: 9:54 上午
 * @PROJECT_NAME: springboot-labs
 */
@Configuration
public class AppConfig {

    @Bean
    public StudentBean studentBean() {
        StudentBean studentBean = new StudentBean();
        studentBean.setId(19);
        studentBean.setName("admin");
        return studentBean;
    }
}
